package cn.my.framework.config.shiro;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by zhangl_lc on 2017/8/4.
 */
@Component
@ConfigurationProperties(prefix = "server.auth")
public class AuthProperties {

    private boolean authenticationNeeded;

    private boolean authorizationNeeded;

    public boolean isAuthenticationNeeded() {
        return authenticationNeeded;
    }

    public void setAuthenticationNeeded(boolean authenticationNeeded) {
        this.authenticationNeeded = authenticationNeeded;
    }

    public boolean isAuthorizationNeeded() {
        return authorizationNeeded;
    }

    public void setAuthorizationNeeded(boolean authorizationNeeded) {
        this.authorizationNeeded = authorizationNeeded;
    }
}
